/*   
 * Copyright (c) 2010-2020 Founder Ltd. All Rights Reserved.   
 *   
 * This software is the confidential and proprietary information of   
 * Founder. You shall not disclose such Confidential Information   
 * and shall use it only in accordance with the terms of the agreements   
 * you entered into with Founder.   
 *   
 */
package com.wujw.auto.go;

import com.wujw.auto.generate.GenerateBean;
import com.wujw.auto.generate.GenerateMapper;
import com.wujw.auto.generate.impl.GenerateBeanImpl;
import com.wujw.auto.generate.impl.GenerateMapperImpl;
import com.wujw.auto.utils.ConfigUtil;

/**
 * 生成入口
 * 
 * @author wujw
 * @version 1.0, 2017年11月11日
 */
public class Go {
    public static void main(String[] args) {
        if (ConfigUtil.beanFlag) {
            GenerateBean bean = new GenerateBeanImpl();
            if (bean.createBean()) {
                System.out.println("bean生成成功");
            } else {
                System.out.println("bean生成失败");
            }
        }
        if (ConfigUtil.mapperXmlFlag) {
            GenerateMapper mapper = new GenerateMapperImpl();
            if (mapper.createMapperXml()) {
                System.out.println("mapper成功");
            } else {
                System.out.println("mapper失败");
            }
        }
    }
}
